package com.walnut.lom_system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 记录系统的角色
 * @author chenhetao
 * @TableName role_info
 */
@TableName(value ="role_info")
@Data
public class RoleInfo implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "key")
    private String key;

    /**
     * 
     */
    @TableField(value = "description")
    private String description;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "last_edit_time")
    private Date lastEditTime;

    /**
     * 
     */
    @TableField(value = "creator_id")
    private Integer creatorId;

    /**
     * 0：正常，-1：删除
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 0:正常，-1:删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}